import 'package:json_annotation/json_annotation.dart';

part 'news_item.g.dart';

@JsonSerializable()
class NewsItem {
	int id;
	String name;
	String img;
	String title;
	String summary;
	String tip;
	String create_time;
	String update_time;
	String category;
	String top_time;

	NewsItem({
		this.id,
		this.name,
		this.img,
		this.title,
		this.summary,
		this.tip,
		this.create_time,
		this.update_time,
		this.category,
		this.top_time
	});

	factory NewsItem.fromJson(Map<String, dynamic> json) => _$NewsItemFromJson(json);

	Map<String, dynamic> toJson() => _$NewsItemToJson(this);

}
